package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.NurseScheduleDao;
import com.yunfeisoft.business.model.NurseSchedule;
import com.yunfeisoft.business.service.inter.NurseScheduleService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.sql.separation.DataSourceChange;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: NurseScheduleServiceImpl
 * Description: 护士排班表service实现
 * Author: Jackie liu
 * Date: 2020-05-22
 */
@Service("nurseScheduleService")
public class NurseScheduleServiceImpl extends BaseServiceImpl<NurseSchedule, String, NurseScheduleDao> implements NurseScheduleService {

    @Override
    @DataSourceChange(slave = true)
    public Page<NurseSchedule> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    @Override
    public List<NurseSchedule> listByTime(Map<String, Object> params) {
        return getDao().listByTime(params);
    }
}